{{useCss "/app-pages/css/article.scss"}}
<div class="article">
    <div class="box">
        <!-- 用户 -->
        <div class="author">
            <div class="head">
                <img bind-src="{{$Cache.article.creater.head_img||'/images/public/78_avatar_middle.jpg'}}?imageView2/1/w/126/h/126" />
            </div>
            <div class="name">{{$Cache.article.creater.nickname||"未命名用户"}}</div>
            <div class="content">
                <div class="item">
                    <div class="num">{{$Cache.article.creater.posttotal||0}}</div>
                    <div class="title">主题</div>
                </div>
                <div class="item">
                    <div class="num">{{$Cache.article.creater.integral||0}}</div>
                    <div class="title">积分</div>
                </div>
            </div>
        </div>
        <!-- 文章 -->
        <div class="contents">
            <div class="title">{{$Cache.article.post_detail.title}}</div>
            <div class="time">{{#Time $Cache.article.post_detail.createtime}}</div>
            <div class="content">
                {{HTML $Cache.article.post_detail.detail}}
                <!-- <img bind-src="/images/test/content.jpg" /> -->
            </div>
            <!-- 回复列表 -->
            <div class="division">
                回复列表
            </div>
            <div class="comments">
                {{#if $Cache.article.replylist.length}}
                {{#each $Cache.article.replylist}}
                <div class="comment">
                    <div class="who">{{creater.nickname||creater.info.nick_name||"未填写昵称"}}，{{#Time createtime}}</div>
                    <div class="detail">
                        {{HTML content}}
                    </div>
                </div>
                {{/each}}
                <div class="pagebox">
                    <a class="button icon-angle-left" event-click="{{'$Event.article.preReplyPage'}}"></a>
                    {{#each $Cache.article.replypages}}
                    <href to="/article.html?_id={{$Top.$Cache.article.current_post_id}}&page={{$Index}}&num={{$Top.$Cache.article.page_num}}" class="{{($Top.$Cache.article.current_reply_page==$Index)&&'focus'}}">{{$Index+1}}</href>
                    {{/each}}
                    <a class="button icon-angle-right" event-click="{{'$Event.article.nextReplyPage'}}"></a>
                </div>
                {{#else}}
                <div class="comment">
                    <div class="detail">还没有回复，快来抢个沙发吧</div>
                </div>
                {{/if}}
            </div>
        </div>
        <!-- 新建回复 -->
        <div class="reply">
            <textarea placeholder="请输入回复内容" bind-input="{{'$Cache.article.reply.new.content'}}" bind-value="{{$Cache.article.reply.new.content}}"></textarea>
            <div class="methods">
            	<a class="method" event-click="{{'$Event.article.post_reply'}}">回复</a>
            </div>
        </div>
    </div>
</div>
